import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'


const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: () => import(/* webpackChunkName: "home" */ '../views/locatoin.vue')
    },
    {
        path: '/infos/:name/:pwd',
        name: 'infos',
        component: () => import( '../views/infos.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router   